package com.zhku.orders.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhku.base.model.PageParams;
import com.zhku.base.model.PageResult;
import com.zhku.orders.model.dto.*;
import com.zhku.orders.model.po.TtOrdersLogistics;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-12-24
 */
public interface TtOrdersLogisticsService extends IService<TtOrdersLogistics> {

    /**
     * 通用查看物流表
     * @param id
     * @return
     */
    ReturnLogisticsDto getUserLogistics(String id);


    /**
     * 分页查看用户物流表
     * @param pageParams
     * @param queryUserOrder
     * @return
     */
    PageResult<ReturnLogisticsDto> queryUserLogisticsList(PageParams pageParams, QueryUserOrder queryUserOrder);

    /**
     * 分页查看店铺物流表
     * @param pageParams
     * @param queryShopOrder
     * @return
     */
    PageResult<ReturnLogisticsDto> queryShopLogisticsList(PageParams pageParams, QueryShopOrder queryShopOrder);

    /**
     * 商家确认发货
     * @param id
     */
    void shopConfirm(String id, AddressDto addressDto);

    /**
     * 用户确认收货
     * @param id
     */
    void userConfirm(String id);

    /**
     * 校验用户是否有资格对商品进行评价
     * @param verifyEvaluateDto
     * @return
     */
    boolean verifyEvaluate(VerifyEvaluateDto verifyEvaluateDto);

}
